<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>购物车</title>
    <script src="../js/jquery-2.1.1.min.js"></script>
    <script src="../js/base.js"></script>
    <script src="../js/vue.min.js"></script>
    <script src="../shopping_cart/shopping_cart.js"></script>
    <link rel="stylesheet" href="../css/commodity.css">
</head>
<body>
<div id="shopping_cart">
    <div>购物车</div>
    <button onclick="back_shopping()">返回商城</button>
    <hr>
    <div><input type="checkbox">全选</div>
    <div class="shopping_list" v-for="obj in commodity">
        <div class="pull_left"><input class="cart_input" type="checkbox" :value="obj.id" v-model="cart_change"></div>
        <div class="pull_left goods-img"><img :src="obj.img_url"></div>
        <div class="pull_left">
            <div>名字: <span>{{ obj.name }}</span></div>
            <div>价格: <span>{{ obj.price }}</span></div>
            <div>分类: <span>{{ obj.classification }}</span></div>
            <div>优惠: <span>{{ obj.preferential }}</span></div>
            <div>数量: <span>{{ obj.num }}</span></div>
        </div>
    </div>
    <div class="clear">
        总计: <span></span>
        <button @click="go_address_list()">结算</button>
    </div>
</div>
</body>
</html>